Tired all the time? Your sleep might be the reason you're not losing weight. Here’s how to fix it—without giving up coffee.